/*
 * @Author: 花香蝶自来 1026583651@qq.com
 * @Date: 2024-05-27 21:47:56
 * @LastEditors: 花香蝶自来 1026583651@qq.com
 * @LastEditTime: 2024-05-29 20:26:52
 * @FilePath: /crm/apis/customer/jcCustomInvoice.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { service as request } from "@/config/request";

// 客户-发票-添加
export function getAdd(query) {
  return request({
    url: "/customer/jcCustomInvoice",
    method: "post",
    header: {
      "Content-Type": "application/json; charset=UTF-8",
    },
    params: query,
  });
}
// 客户-发票-修改
export function getupdate(query) {
  return request({
    url: "/customer/jcCustomInvoice",
    method: "PUT",
    header: {
      "Content-Type": "application/json; charset=UTF-8",
    },
    params: query,
  });
}
// 客户-发票-删除
export function getDelete(query) {
  return request({
    url: `/customer/jcCustomInvoice`,
    method: "DELETE",
    data: [`${query.id}`],
  });
}
// 客户-发票-查询
export function getPage(query) {
  return request({
    url: "/customer/jcCustomInvoice/page",
    method: "get",
    params: query,
  });
}
// 客户-发票-查询-id
export function getPageid(query) {
  return request({
    url: `/customer/jcCustomInvoice/${query}`,
    method: "get",
  });
}
